

num = int(input("请输入星期几"))

if num == 1:
    print("1")
elif num == 2:
    print("2")
elif num == 3:
    print("3")
elif num == 4:
    print("4")
elif num == 5:
    print("5")
elif num == 6:
    print("6")
elif num == 7:
    print("7")
else:
    print("出错了")




# if elif
sex = input("please input your sex:")

if sex == "男" :
    print("男....")
elif sex == "女":
    print("女...")
else:
    print("输入出错")

# if逻辑运算符
a = 30
if not (a > 0 and a <= 50):
    print("在0到50之间")
else :
    print("不在")


# 白富美

color = input("你白么？")
money = int(input("输入金钱："))
beautiful = input("你美么？")

if color == "白" and money > 10000 and beautiful == "美":
    print("白富美")
else:
    print("呵呵")

# 下面的代码 不会因为上面第5行的if条件满足或者不满足而不一样,即 他们之间没有任何关系
print("呵呵")
print("呵呵")
print("呵呵")


# 01-if比较运算符.py、02-if逻辑运算符.py、03-if逻辑运算符-and.py

age = 19

if age >= 18:
    print(" 成年了 ")

you = input("you go?") # yes or no
yourWife = input("you wife go?") # yes or no

if you == "yes" or yourWife == "yes":
    print("go go go")

if you == "yes" and yourWife == "yes":
    print("to to to")



